import React, {Component} from "react"
import { PageHeader } from 'antd';
import Lexer from './Lexer'
import Editor from './Editor'

class IDE extends Component{
  constructor(props){
    super(props)
    this.state = {
      sourceCode:''
    }
    this.lexer = new Lexer('')
    console.log(this.lexer.getKeyWords(),'hello wrold')
  }

  render(){
    
    return (
      <div>
        <PageHeader
          backIcon={false}
          onBack={() => null}
          title="编译器"
          subTitle="编译器练习"
        />
        <Editor keyWords = {this.lexer.getKeyWords()}/>
       
      </div>
    )
  }
 
}

export default IDE